﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PlayerSite.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="BigLotterySyndicate.MyAccount.Default" %>
<%@ Register TagPrefix="Syndicate" TagName="Pager" Src="~/Controls/Pager.ascx" %>
<%@ Register TagPrefix="Syndicate" TagName="DrawListItem" Src="~/Secured/Controls/DrawListItem.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="breadcrumb">
<a href="/MyAccount/Default.aspx?Ns=0">Home</a> / <b>My  draws</b>
</div>
<div class="content-wrapper">
<p>Remaining funds: <b><%= PrintFunds() %> </b> Money spent: <b> <%= PrintMoneySpend() %></b></p>
<asp:MultiView ID="MultiViewList" runat="server">
<asp:View ID="ViewList" runat="server">
<Syndicate:Pager runat="server" ID="TopPager" PageSize="40" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="true"/>
<table cellpadding="2" cellspacing="2">
<thead>
<tr>
<th>Draw type</th>
<th>Draw date</th>
<th>Players</th>
<th>Lines</th>
<th>Status</th>
<th>Result</th>
<th>Money spent</th>
<th>Money won</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<asp:Repeater ID="RepeaterList" runat="server">
    <ItemTemplate>
    <Syndicate:DrawListItem ID="DrawListItem" ForPlayer="True" runat="server" />    
    </ItemTemplate>    
    <AlternatingItemTemplate>
    <Syndicate:DrawListItem ID="DrawListItem" ForPlayer="True" runat="server" AlternateRow="True" />    
    </AlternatingItemTemplate>
</asp:Repeater>
</tbody>
</table>
<Syndicate:Pager runat="server" ID="BottomPager" PageSize="40" PageIndexPageParam="Page" OnPageIndexChanged="Pager_PageIndexChanged" Visible="false"/>
<p>Click <a href="/MyAccount/DownloadXML.aspx?t=<%= PrintMyToken() %>&a=true">here</a> to download your draws in xml format.</p>
</asp:View>
<asp:View ID="ViewEmpty" runat="server">
<p>No draws found.</p>
</asp:View>
</asp:MultiView>
<p style="margin-top:130px;">To add more funds please contact your syndicate managers:</p>
<p>
<asp:Literal ID="litManagers" runat="server"></asp:Literal>
</p>
<p>Access token for mobile application: <br />
<asp:Image ID="imgTokenImage" runat="server" style="border: 1px solid black;margin: 5px 0;" ToolTip="Access token for mobile application" />
<br />
    <asp:Button ID="ButtonRegenerate" runat="server" Text="Regenerate" 
        onclick="ButtonRegenerate_Click" /></p>
        
</div>
    <div class="content-wrapper-right">
<img src="/Assets/Images/lotto_badge.png" />
<img src="/Assets/Images/euro_badge.png" />
<img src="/Assets/Images/health_badge.png" alt="Health Lottery" />
</div>
</asp:Content>
